var db = connect('company')
/* var workmate3 = {
    "name": "MinJie",
    "age": 20,
    "sex": 0,
    "job": "UI设计",
    "skill": {
        "skillOne": "PhotoShop",
        "SkillTwo": "UI",
        "SkillThree": "Word+Excel+PPT"
    },
    "regeditTime": new Date()
}
db.workmate.update({
    "name": 'MinJie'
}, workmate3) */
// db.workmate.update({ "name": "MinJie" }, { "$set": { "sex": 2, "age": 24 } });
// db.workmate.update({ "name": "MinJie" }, { "$set": { "skill.skillThree": 'word' }});
// db.workmate.update({ "name": "MinJie" }, { "$set": { "age": "" } }); 
// db.workmate.update({ "name": "MinJie" }, { "$unset": { "age": "" } }); 
// db.workmate.update({ "name": "MinJie" }, { "$inc": { "age": -2 } }); 
// db.workmate.update({}, { "$set": { "interset": [] } }, { "multi": true });
// db.workmate.update({}, { "$unset": { "interset": "" } }, { "multi": true });
// db.workmate.update({ "name": "MinJie" }, { "$set": { "stature": 180 } }, { "upsert": true });
// db.workmate.update({ "name": "JSPang" }, { "$set": { "stature": 180 } });
print('[update]: The data was updated successfully');